﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using KPIS.GERP.SERVICE.DAL;
using KPIS.GERP.SERVICE.BLL;
using KPIS.GERP.SERVICE.Model;

namespace KPIS.GERP.SERVICE.BLL
{
    public class BLLHrmPsEmployees
    {
        DAL.Employee dalEmployee = new DAL.Employee();

        public List<hrm_ps_employees> GetHrmPsEmployee(string emp_seq, string emp_type_seq, string class_seq, string pos_seq
            , string working_job_site_seq, string exec_pos_seq, string emp_status_seq, string active
            , out string strError)
        {
            strError = string.Empty;
            List<hrm_ps_employees> EmployeeModel = dalEmployee.GetHrmPsEmployee(emp_seq, emp_type_seq, class_seq, pos_seq
                , working_job_site_seq, exec_pos_seq, emp_status_seq, active, true, false, false, false, false, false, false, false
                , false, false, false, false, false, false);

            if (EmployeeModel.Count > 0)
            {
                //userModel[0].user_job_site_seq = userModel[0].hrm_ps_employees.working_job_site_seq;
                //userModel[0].user_pos_seq = userModel[0].hrm_ps_employees.pos_seq;
            }
            else
            {
                strError = Common.ErrorEmptyData;
            }

            return EmployeeModel;
        }


    }
}
